<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="stylesheet.css">
        <title>Authorization</title>
    </head>

    <%
        if (session != null) {
            session.invalidate();
        }
    %>

    <body>
        <h1>Authorization</h1>
        <form action="AuthUser" method="POST">
            <table border="0">
                <tbody>
                    <tr>
                        <td colspan="2">
                        </td>
                    </tr>
                    <tr>
                        <td>Login:</td>
                        <td><input type="text" name="login"></td>
                    </tr>
                    <tr>
                        <td>Password:</td>
                        <td><input type="password" name="password"></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><input type="submit" value="Sign in"></td>
                    </tr>
                </tbody>
            </table>
        </form>
    </body>
    <p align="center">
        <span style="color: red">
            <% if ((request.getAttribute("error")) != null) {
                    out.println(request.getAttribute("error"));
                }
            %> 
        </span>
    </p>
</html>

